const userInfo = {
  id: 1,
  name: '张三',
  username: 'zhangSan',
  roles: ['admin'],
  permissions: ['sys:role:edit']
};

export default [
  {
    url: '/mock-api/auth/login',
    method: 'post',
    response: (res) => {
      return {
        code: 200,
        data: {
          token: '123456789'
        }
      };
    }
  },
  {
    url: '/mock-api/auth/getUserInfo',
    method: 'get',
    response: () => {
      return {
        code: 200,
        data: {
          ...userInfo
        }
      };
    }
  }
];
